package com.woniuxy.tfss.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.woniuxy.tfss.entity.Discount;
import com.woniuxy.tfss.entity.DiscountVO;
import com.woniuxy.tfss.entity.User;

import java.text.ParseException;
import java.util.List;

public interface UserService extends IService<User> {

    User getUserByPhoneNum(String phoneNum);

    User login(String phoneNum, String password);

    List<Discount> getDiscountsByUserId(Integer userId);

    void addDiscount(Integer userId, Integer discountId, String time) throws ParseException;

    void reduceDiscount(Integer userId,Integer discountId);
}
